import request from '@/utils/request'
const BASE_URL = '/apis'

// 查询节点资源
export function getNodeResource() {
  return request({
    url: BASE_URL + '/api/v1/resource/nodes_resources',
    method: 'get'
  })
}

// 机器规格
export function handleMachineSpecification(method, data) {
  return request({
    url: BASE_URL + '/api/v1/machine/machineSku',
    method: method,
    data: data
  })
}

// 机器信息
export function handleMachineInfo(method, data) {
  return request({
    url: BASE_URL + '/api/v1/machine/k8sMachines',
    method: method,
    data: data
  })
}
